package net.csdn.business.auth.config;

import net.csdn.business.common.service.SnowflakeService;
import net.csdn.business.common.service.impl.SnowflakeServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: zhangyalei
 * @Date: 2022/12/5 20:31
 * @Description: 分布式id生成自动配置类
 */
@Configuration
public class SnowflakeConfig {
    @Bean
    public SnowflakeService getSnowflakeService() {
        return new SnowflakeServiceImpl();
    }
}
